<?php
// Template values
define('TEMPLATEPATH', ABSPATH . '/tr-themes');
define('TPPATH', 'tr-themes');


require (ABSPATH . WPINC . '/functions.php');

// Used to guarantee unique hash cookies
$cookiehash = md5(get_settings('siteurl')); // Remove in 1.4
define('COOKIEHASH', $cookiehash);

require (ABSPATH . WPINC . '/template-functions.php');
require (ABSPATH . WPINC . '/post-functions.php');
require (ABSPATH . WPINC . '/user-functions.php');
require (ABSPATH . WPINC . '/ajax-functions.php');
require (ABSPATH . WPINC . '/xajax.class.php');
require (ABSPATH . WPINC . '/inputfilter.class.php');

require (ABSPATH . WPINC . '/dbquery.class.php');
require (ABSPATH . WPINC . '/feedcreator.class.php');


// Path for cookies
define('COOKIEPATH', preg_replace('|https?://[^/]+|i', '', '/' ) );
define('SITECOOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_settings('siteurl') . '/' ) );

// On which page are we ?
$PHP_SELF = $_SERVER['PHP_SELF'];

if ( !get_magic_quotes_gpc() ) {
	$_GET    = add_magic_quotes($_GET   );
	$_POST   = add_magic_quotes($_POST  );
	$_COOKIE = add_magic_quotes($_COOKIE);
	$_SERVER = add_magic_quotes($_SERVER);
}

?>
